package com.wang.service;

import com.wang.entity.User;
import com.wang.utils.ResponseUtil;

public interface UserService {

    /**
     * @param
     * @return
     * @description 查询所有用户
     * @author admin
     * @updateTime 2024/8/29 9:17
     */
    public ResponseUtil findAll();

    public ResponseUtil find(Integer pageNum,Integer pageSize);

    /**
     * @param
     * @return
     * @description 根据id查询用户
     * @author admin
     * @updateTime 2024/8/29 9:17
     */
    public ResponseUtil findByUserId(Integer id);

    /**
     * @param
     * @return
     * @description 添加用户
     * @author admin
     * @updateTime 2024/8/29 11:20
     */
    public ResponseUtil addUser(User user);

    /**
     * @param
     * @return
     * @description 前台用户登录
     * @author admin
     * @updateTime 2024/8/29 11:44
     */
    public ResponseUtil apiLogin(User user);

    /**
     * @param
     * @return
     * @description 前台注册
     * @author admin
     * @updateTime 2024/9/3 11:49
     */
    public ResponseUtil apiAddUser(User user);

    /**
     * @param
     * @return
     * @description 后台用户登录
     * @author admin
     * @updateTime 2024/9/5 12:06
     */
    public ResponseUtil adminAddUser(User user);
}
